'use strict';

/**
 * Config constant
 */
app.constant('APP_MEDIAQUERY', {
    'desktopXL': 1200,
    'desktop': 992,
    'tablet': 768,
    'mobile': 480
});
app.constant('JS_REQUIRES', {
    //*** Scripts
    scripts: {
        //*** Javascript Plugins
        'modernizr': ['../bower_components/components-modernizr/modernizr.js'],
        'moment': ['../bower_components/moment/min/moment.min.js'],
        'spin': '../bower_components/spin.js/spin.js',
        'api-check': '../bower_components/api-check/dist/api-check.min.js',
        'formly': '../bower_components/angular-formly/dist/formly.js',
        'd3': '../bower_components/d3/d3.min.js',
        'bpmn-js-properties': ['../bower_components/bpmn-js-properties/dist/index.js', '../bower_components/bpmn-js-properties/dist/css/diagram-js.css', '../bower_components/bpmn-js-properties/dist/vendor/bpmn-font/css/bpmn-embedded.css', '../bower_components/bpmn-js-properties/dist/css/app.css'],
        'multiSelectTree': [
            //             '../bower_components/bootstrap-css-only/css/bootstrap.min.css',
            //             '../bower_components/angular-multi-select-tree/dist/angular-multi-select-tree-0.1.0.min.css',
            //             '../bower_components/angular-multi-select-tree/dist/angular-multi-select-tree-0.1.0.min.js',
            '../bower_components/angular-multi-select-tree/dist/angular-multi-select-tree-0.1.0.tpl.js'
        ],
        //*** jQuery Plugins
        'perfect-scrollbar-plugin': ['../bower_components/perfect-scrollbar/js/min/perfect-scrollbar.jquery.min.js', '../bower_components/perfect-scrollbar/css/perfect-scrollbar.min.css'],
        'ladda': ['../bower_components/ladda/dist/ladda.min.js', '../bower_components/ladda/dist/ladda-themeless.min.css'],
        'sweet-alert': ['../bower_components/sweetalert/lib/sweet-alert.min.js', '../bower_components/sweetalert/lib/sweet-alert.css'],
        'chartjs': '../bower_components/chartjs/Chart.js',
        'jquery-sparkline': '../bower_components/jquery.sparkline.build/dist/jquery.sparkline.min.js',
        'ckeditor-plugin': '../bower_components/ckeditor/ckeditor.js',
        'jquery-nestable-plugin': ['../bower_components/jquery-nestable/jquery.nestable.js'],
        'touchspin-plugin': ['../bower_components/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.min.js', '../bower_components/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.min.css'],

        //*** Controllers

        'dashboardCtrl': 'assets/js/controllers/dashboardCtrl.js',

        'incidentCtrl': 'assets/js/controllers/incident/incidentCtrl.js',
        'problemCtrl': 'assets/js/controllers/problem/problemCtrl.js',
        'watchCtrl': 'assets/js/controllers/watch/watchCtrl.js',
        'changeCtrl': 'assets/js/controllers/change/changeCtrl.js',
        'releaseCtrl': 'assets/js/controllers/release/releaseCtrl.js',
        'processCtrl': 'assets/js/controllers/process/processCtrl.js',
        'cmdbCtrl': 'assets/js/controllers/cmdb/cmdbCtrl.js',
        'cmdbListCtrl': 'assets/js/controllers/cmdb/cmdbListCtrl.js',
        'cmdbViewCtrl': 'assets/js/controllers/cmdb/cmdbViewCtrl.js',
        'logCtrl': 'assets/js/controllers/cmdb/logCtrl.js',
        'knowledgeCtrl': 'assets/js/controllers/knowledge/knowledgeCtrl.js',
        'schedulingCtrl': 'assets/js/controllers/scheduling/schedulingCtrl.js',
        'reportCtrl': 'assets/js/controllers/report/reportCtrl.js',
        //*** System Manager
        'knowledgebaseCtrl': 'assets/js/controllers/system/knowledgebaseCtrl.js',
        'navmanagerCtrl': 'assets/js/controllers/system/adminnavmanagerCtrl.js',
        'systemmanagerCtrl': 'assets/js/controllers/system/adminsystemmanagerCtrl.js',
        //user start
        'groupusermgrCtrl': 'assets/js/controllers/system/user/admingroupuserCtrl.js',
        'groupauthoritymgrCtrl': 'assets/js/controllers/system/user/admingroupauthorityCtrl.js',
        'roleauthoritymgrCtrl': 'assets/js/controllers/system/user/adminroleauthorityCtrl.js',
        'groupmgrCtrl': 'assets/js/controllers/system/user/admingroupCtrl.js',
        'requestermgrCtrl': 'assets/js/controllers/system/user/adminrequesterCtrl.js',
        'usermgrCtrl': 'assets/js/controllers/system/user/adminUserCtrl.js',
        'rolemgrCtrl': 'assets/js/controllers/system/user/adminRoleCtrl.js',
        //user end
        'loginCtrl': 'assets/js/controllers/loginCtrl.js',
        'sysformCtrl': 'assets/js/controllers/system/systemFormCtrl.js',
        'passwordCtrl': 'assets/js/controllers/changepasswordCtrl.js',
        'iconsCtrl': 'assets/js/controllers/iconsCtrl.js',
        'vAccordionCtrl': 'assets/js/controllers/vAccordionCtrl.js',
        'ckeditorCtrl': 'assets/js/controllers/ckeditorCtrl.js',
        'laddaCtrl': 'assets/js/controllers/laddaCtrl.js',
        'ngTableCtrl': 'assets/js/controllers/ngTableCtrl.js',
        'cropCtrl': 'assets/js/controllers/cropCtrl.js',
        'asideCtrl': 'assets/js/controllers/asideCtrl.js',
        'toasterCtrl': 'assets/js/controllers/toasterCtrl.js',
        'sweetAlertCtrl': 'assets/js/controllers/sweetAlertCtrl.js',
        'mapsCtrl': 'assets/js/controllers/mapsCtrl.js',
        'chartsCtrl': 'assets/js/controllers/chartsCtrl.js',
        'calendarCtrl': 'assets/js/controllers/calendarCtrl.js',
        'nestableCtrl': 'assets/js/controllers/nestableCtrl.js',
        'validationCtrl': ['assets/js/controllers/validationCtrl.js'],
        'userCtrl': ['assets/js/controllers/userCtrl.js'],
        'selectCtrl': 'assets/js/controllers/selectCtrl.js',
        'wizardCtrl': 'assets/js/controllers/wizardCtrl.js',
        'uploadCtrl': 'assets/js/controllers/uploadCtrl.js',
        'treeCtrl': 'assets/js/controllers/treeCtrl.js',
        'inboxCtrl': 'assets/js/controllers/inboxCtrl.js',
        'xeditableCtrl': 'assets/js/controllers/xeditableCtrl.js',
        'chatCtrl': 'assets/js/controllers/chatCtrl.js',
        //add Controller
        'customformCtrl': 'assets/js/controllers/customform/customformCtrl.js',
        'customformDetailCtrl': 'assets/js/controllers/customform/customformDetailCtrl.js',
        'easyformCtrl': 'assets/js/controllers/easyform/easyformCtrl.js',
        //*** Filters
        'htmlToPlaintext': 'assets/js/filters/htmlToPlaintext.js'
    },
    //*** angularJS Modules
    modules: [{
            name: 'angularMoment',
            files: ['../bower_components/angular-moment/angular-moment.min.js']
        }, {
            name: 'toaster',
            files: ['../bower_components/AngularJS-Toaster/toaster.js', '../bower_components/AngularJS-Toaster/toaster.css']
        }, {
            name: 'angularBootstrapNavTree',
            files: ['../bower_components/angular-bootstrap-nav-tree/dist/abn_tree_directive.js', '../bower_components/angular-bootstrap-nav-tree/dist/abn_tree.css']
        }, {
            name: 'angular-ladda',
            files: ['../bower_components/angular-ladda/dist/angular-ladda.min.js']
        }, {
            name: 'ngTable',
            files: ['../bower_components/ng-table/dist/ng-table.min.js', '../bower_components/ng-table/dist/ng-table.min.css']
        }, {
            name: 'ui.select',
            files: ['../bower_components/angular-ui-select/dist/select.js', '../bower_components/angular-ui-select/dist/select.min.css', '../bower_components/select2/dist/css/select2.min.css', '../bower_components/select2-bootstrap-css/select2-bootstrap.min.css', '../bower_components/selectize/dist/css/selectize.bootstrap3.css']
        }, {
            name: 'ui.mask',
            files: ['../bower_components/angular-ui-utils/mask.min.js']
        }, {
            name: 'ngImgCrop',
            files: ['../bower_components/ngImgCrop/compile/minified/ng-img-crop.js', '../bower_components/ngImgCrop/compile/minified/ng-img-crop.css']
        }, {
            name: 'angularFileUpload',
            files: ['../bower_components/angular-file-upload/angular-file-upload.js']
        }, {
            name: 'ngAside',
            files: ['../bower_components/angular-aside/dist/js/angular-aside.min.js', '../bower_components/angular-aside/dist/css/angular-aside.min.css']
        }, {
            name: 'truncate',
            files: ['../bower_components/angular-truncate/src/truncate.js']
        }, {
            name: 'oitozero.ngSweetAlert',
            files: ['../bower_components/angular-sweetalert-promised/SweetAlert.min.js']
        }, {
            name: 'monospaced.elastic',
            files: ['../bower_components/angular-elastic/elastic.js']
        }, {
            name: 'ngMap',
            files: ['../bower_components/ngmap/build/scripts/ng-map.min.js']
        }, {
            name: 'tc.chartjs',
            files: ['../bower_components/tc-angular-chartjs/dist/tc-angular-chartjs.min.js']
        }, {
            name: 'flow',
            files: ['../bower_components/ng-flow/dist/ng-flow-standalone.min.js']
        }, {
            name: 'uiSwitch',
            files: ['../bower_components/angular-ui-switch/angular-ui-switch.min.js', '../bower_components/angular-ui-switch/angular-ui-switch.min.css']
        }, {
            name: 'ckeditor',
            files: ['../bower_components/angular-ckeditor/angular-ckeditor.js']
        }, {
            name: 'mwl.calendar',
            files: ['../bower_components/angular-bootstrap-calendar/dist/js/angular-bootstrap-calendar-tpls.min.js', '../bower_components/angular-bootstrap-calendar/dist/css/angular-bootstrap-calendar.min.css']
        },
        // {
        //     name: 'mwl.calendar',
        //     files: ['../bower_components/angular-bootstrap-calendar/dist/js/angular-bootstrap-calendar.js', '../bower_components/angular-bootstrap-calendar/dist/js/angular-bootstrap-calendar-tpls.js', 'assets/js/config/config-mwlcalendar.js', '../bower_components/angular-bootstrap-calendar/dist/css/angular-bootstrap-calendar.min.css']
        // },

        {
            name: 'ng-nestable',
            files: ['../bower_components/ng-nestable/src/angular-nestable.js']
        }, {
            name: 'vAccordion',
            files: ['../bower_components/v-accordion/dist/v-accordion.min.js', '../bower_components/v-accordion/dist/v-accordion.min.css']
        }, {
            name: 'xeditable',
            files: ['../bower_components/angular-xeditable/dist/js/xeditable.min.js', '../bower_components/angular-xeditable/dist/css/xeditable.css', 'assets/js/config/config-xeditable.js']
        }, {
            name: 'checklist-model',
            files: ['../bower_components/checklist-model/checklist-model.js']
        }, {
            name: 'angularFormly',
            files: [
                '../bower_components/angular-formly-templates-bootstrap/dist/angular-formly-templates-bootstrap.min.js'
            ]
        }, {
            name: 'ui.grid',
            files: [
                '../bower_components/angular-ui-grid/ui-grid.js', '../bower_components/angular-ui-grid/ui-grid.css'
            ]
        }, {
            name: 'multi.select.tree',
            files: [
                //'../bower_components/bootstrap-css-only/css/bootstrap.min.css',
                '../bower_components/angular-multi-select-tree/dist/angular-multi-select-tree-0.1.0.css',
                '../bower_components/angular-multi-select-tree/dist/angular-multi-select-tree-0.1.0.js'
            ]
        }, {
            name: 'easy.form',
            files: [
                '../bower_components/easyFormGenerator/public/clientMVC/main/clientMVC.min.js',
                //'../bower_components/easyFormGenerator/public/js/app_nav.min.js'
            ]
        }, {
            name: 'nya-bs-select',
            files: [
                '../bower_components/nya-bootstrap-select/dist/js/nya-bs-select.min.js',
                '../bower_components/nya-bootstrap-select/dist/css/nya-bs-select.min.css',
            ]
        }, {
            name: 'textAngular',
            files: [
                '../bower_components/textAngular/dist/textAngular-rangy.min.js',
                '../bower_components/textAngular/dist/textAngular-sanitize.min.js',
                '../bower_components/textAngular/dist/textAngular.min.js',
                '../bower_components/textAngular/dist/textAngularSetup.js',
                '../bower_components/textAngular/dist/textAngular.css'
            ]
        }
    ]
});